/*  BEGIN_FILE_HDR
******************************************Copyright(C)*****************************************
* 
*                                       YKXH  Technology
* 
***********************************File Info***************************************************
*   File Name       @: CanTp_PBcfg.c
************************************************************************************************
*   Project/Product @: CANTP
*   Title           @:
*   Author          @: zhongliang.Yang 
************************************************************************************************
*   Description     @: 
*
************************************************************************************************
*   Limitations     @: None
*
************************************************************************************************
*
************************************************************************************************
*   Revision History:
*
*   Version     Date          Initials           CR#         Descriptions
*   --------    -----------   ----------------   --------    -----------------------
*   1.0         2018/05/29    zhongliang.yang    N/A         Original 
*   1.1         xxxx/xx/xx    xxxxx              N/A         xxxxxxxx 
*
************************************************************************************************
* END_FILE_HDR*/

/* -----------------------------------------------------------------------------
    &&&~ Include files
 ----------------------------------------------------------------------------- */
#include "CanTp.h"
/* -----------------------------------------------------------------------------
    &&&~ Version Check
 ----------------------------------------------------------------------------- */
#define CANTP_START_SEC_CONFIG_DATA_UNSPECIFIED
//#include "MemMap.h"
#include "../src/BSW/CommS/NM/YKBase/MemMap.h"


/* -----------------------------------------------------------------------------
    &&&~ CanTp Overall (ROM)
 ----------------------------------------------------------------------------- */
/* Struct to hold the complete CanTp-configuration */

const CanTp_RxNsduCfgType CanTp_RxNsduCfg[];
const CanTp_TxNsduCfgType CanTp_TxNsduCfg[];
const CanTpChannelModeType CanTpChannelMode[CANTP_CHANNELS];
const CanTp_CfgType CanTp_Cfg = 
{   
    CanTp_RxNsduCfg /* Pointer to RxNsdu-cfg-table */, 
    CanTp_TxNsduCfg /* Pointer to TxNsdu-cfg-table */, 
    CanTpChannelMode /* Extended SDU indirection table */,  
    //2 /*  NumCanTpRxSduId */,
    //1 /*  NumCanTpTxSduId */,   
};

/* -----------------------------------------------------------------------------
    &&&~ RxNsdu (ROM)
 ----------------------------------------------------------------------------- */

const CanTp_RxNsduCfgType CanTp_RxNsduCfg[CANTP_NUM_RX_SDUS] = 
{
	{
		0 /*Tp Channel Num */   /* CANTP_RXNSDU_ID; to    PduR */,
		5 /* 5 CANTP_RXNPDU_ID; from  CanIf */,
		7 /* 7 CANTP_TXFC_NPDU_ID; to CanIf */,
		1u /* CANTP_DL */,
		70 /* CANTP_NAR */,   //  25
		10 /* CANTP_NBR */,	  //  10
		150 /* CANTP_NCR */,
		CANTP_ON /* CANTP_PADDING_ACTIVATION */,
		CANTP_PHYSICAL /* CANTP_TA_TYPE */,
		CANTP_STANDARD /* CANTP_ADDRESSING_FORMAT */,
		0 /* CANTP_BS */,
		10 /* CANTP_STMIN */,
		100 /* CANTP_WFTMAX */,
		CANTP_UNUSED /* CANTP_RX_NAE */,
		CANTP_UNUSED /* CANTP_RX_NSA */,
		CANTP_UNUSED /* CANTP_RX_NTA */,
	},
	{
		0 /*Tp Channel Num */   /* CANTP_RXNSDU_ID; to    PduR */,
		6 /*6 CANTP_RXNPDU_ID; from  CanIf */,
		7 /*7 CANTP_TXFC_NPDU_ID; to CanIf */,
		1u /* CANTP_DL */,
		70 /* CANTP_NAR */,     //  25
		10 /* CANTP_NBR */,     //  10
		150 /* CANTP_NCR */,
		CANTP_ON /* CANTP_PADDING_ACTIVATION */,
		CANTP_FUNCTIONAL /* CANTP_TA_TYPE */,
		CANTP_STANDARD /* CANTP_ADDRESSING_FORMAT */,
		0 /* CANTP_BS */,
		10 /* CANTP_STMIN */,
		100 /* CANTP_WFTMAX */,
		CANTP_UNUSED /* CANTP_RX_NAE */,
		CANTP_UNUSED /* CANTP_RX_NSA */,
		CANTP_UNUSED /* CANTP_RX_NTA */,
	},
};


/* -----------------------------------------------------------------------------
    &&&~ TxNsdu (ROM)
 ----------------------------------------------------------------------------- */

const CanTp_TxNsduCfgType CanTp_TxNsduCfg[CANTP_NUM_TX_SDUS] = 
{
	{
		0 /*Tp Channel Num */	/* CANTP_TXNSDU_ID;  from PduR */, 
		7 /*7 CANTP_TXNPDU_ID; to CanIf */, //////////////////for DCM Phy Tx
		5 /*5 CANTP_RXFC_NPDU_ID; from CanIf */,
		1 /* CANTP_DL */, 
	  	70 /* CANTP_NAS */,      //  25
		150 /* CANTP_NBS */,      //  75
		25 /* CANTP_NCS */,  
		CANTP_ON /* CANTP_PADDING_ACTIVATION */, 
		CANTP_PHYSICAL /* CANTP_TA_TYPE */,
		CANTP_STANDARD /* CANTP_ADDRESSING_FORMAT */,
		CANTP_UNUSED /* CANTP_RX_NAE */,
		CANTP_UNUSED /* CANTP_TX_NSA */, 
		CANTP_UNUSED /* CANTP_TX_NTA */, 
	}, 
};




const CanTpChannelModeType CanTpChannelMode[CANTP_CHANNELS]=
{
  {
		CANTP_MODE_HALF_DUPLEX
  },
};

#define CANTP_STOP_SEC_CONFIG_DATA_UNSPECIFIED
#include "../src/BSW/CommS/NM/YKBase/MemMap.h"


